import { defineStore } from 'pinia'
import UserInfo from '../dto/UserInfo'

export const useUserStore = defineStore('user', {
    state: () => {
        return {
            // 用户信息
            userInfo: <UserInfo>{}
        }
    },
    actions: {
        // 设置用户信息
        setUserInfo(newValue: UserInfo){
            this.userInfo = newValue;
        }
    },
})